<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/19
 * Time: 14:43
 */

header("Content-type:text/html;charset=utf-8");
$fun2 = function(){
    echo "你好";
};

function fun3(){
    echo "hello";
}

$fun4 = "fun3";
function myFun($callback){
    $callback();
}

myFun($fun2);
myFun("fun3");
myFun($fun4);

